package com.hpli.domain.credit.model.entity;


import com.hpli.domain.award.model.valobj.TaskStateVO;
import com.hpli.domain.credit.event.CreditAdjustSuccessMessageEvent;
import com.hpli.types.event.BaseEvent;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: 汀
 * @CreateTime: 2025-04-23
 * @Description: 任务对象实体
 * @Version: 1.0
 */

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class TaskEntity {

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 消息主题
     */
    private String topic;

    /**
     * 消息Id
     */
    private String messageId;

    /**
     * 消息主体
     */
    private BaseEvent.EventMessage<CreditAdjustSuccessMessageEvent.CreditAdjustSuccessMessage> message;

    /**
     * 任务状态
     */
    private TaskStateVO state;

}
